package cn.ainit.fx.other.entity;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * OtherInstockItem entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "FX_OTHER_INSTOCK_ITEM")
public class OtherInstockItem implements java.io.Serializable {

	// Fields

	private String osiItemId;
	private OtherInstock otherInstock;
	private String stockId;
	private String spId;
	private String spUnit;
	private Long spAmount;
	private Long spRealPrice;
	private Long taxRate;
	private Long taxMoney;
	private Long realMoney;
	private String spDiscount;
	private Long spPrice;
	private String memo;
	private Long realMoneyItem;
	private Long totalMoneyItme;
	private Long packages;

 

	// Property accessors
	@Id
	@Column(name = "OSI_ITEM_ID", unique = true, nullable = false, length = 32)
	public String getOsiItemId() {
		return this.osiItemId;
	}

	public void setOsiItemId(String osiItemId) {
		this.osiItemId = osiItemId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "OSI_ID")
	public OtherInstock getOtherInstock() {
		return this.otherInstock;
	}

	public void setOtherInstock(OtherInstock otherInstock) {
		this.otherInstock = otherInstock;
	}

	@Column(name = "STOCK_ID", length = 32)
	public String getStockId() {
		return this.stockId;
	}

	public void setStockId(String stockId) {
		this.stockId = stockId;
	}

	@Column(name = "SP_ID", length = 32)
	public String getSpId() {
		return this.spId;
	}

	public void setSpId(String spId) {
		this.spId = spId;
	}

	@Column(name = "SP_UNIT", length = 32)
	public String getSpUnit() {
		return this.spUnit;
	}

	public void setSpUnit(String spUnit) {
		this.spUnit = spUnit;
	}

	@Column(name = "SP_AMOUNT", precision = 18, scale = 0)
	public Long getSpAmount() {
		return this.spAmount;
	}

	public void setSpAmount(Long spAmount) {
		this.spAmount = spAmount;
	}

	@Column(name = "SP_REAL_PRICE", precision = 18, scale = 0)
	public Long getSpRealPrice() {
		return this.spRealPrice;
	}

	public void setSpRealPrice(Long spRealPrice) {
		this.spRealPrice = spRealPrice;
	}

	@Column(name = "TAX_RATE", precision = 18, scale = 0)
	public Long getTaxRate() {
		return this.taxRate;
	}

	public void setTaxRate(Long taxRate) {
		this.taxRate = taxRate;
	}

	@Column(name = "TAX_MONEY", precision = 18, scale = 0)
	public Long getTaxMoney() {
		return this.taxMoney;
	}

	public void setTaxMoney(Long taxMoney) {
		this.taxMoney = taxMoney;
	}

	@Column(name = "REAL_MONEY", precision = 18, scale = 0)
	public Long getRealMoney() {
		return this.realMoney;
	}

	public void setRealMoney(Long realMoney) {
		this.realMoney = realMoney;
	}

	@Column(name = "SP_DISCOUNT", length = 32)
	public String getSpDiscount() {
		return this.spDiscount;
	}

	public void setSpDiscount(String spDiscount) {
		this.spDiscount = spDiscount;
	}

	@Column(name = "SP_PRICE", precision = 18, scale = 0)
	public Long getSpPrice() {
		return this.spPrice;
	}

	public void setSpPrice(Long spPrice) {
		this.spPrice = spPrice;
	}

	@Column(name = "MEMO", length = 500)
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	@Column(name = "REAL_MONEY_ITEM", precision = 18, scale = 0)
	public Long getRealMoneyItem() {
		return this.realMoneyItem;
	}

	public void setRealMoneyItem(Long realMoneyItem) {
		this.realMoneyItem = realMoneyItem;
	}

	@Column(name = "TOTAL_MONEY_ITME", precision = 18, scale = 0)
	public Long getTotalMoneyItme() {
		return this.totalMoneyItme;
	}

	public void setTotalMoneyItme(Long totalMoneyItme) {
		this.totalMoneyItme = totalMoneyItme;
	}

	@Column(name = "PACKAGE", precision = 18, scale = 0)
	 	public Long getPackages() {
		return packages;
	}

	public void setPackages(Long packages) {
		this.packages = packages;
	}
 

}